home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970626-19970929 / 000426_news@newsmaster….columbia.edu _Sun Sep 28 01:00:08 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id BAA01684
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Sun, 28 Sep 1997 01:00:08 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id BAA24826
  7.     for kermit.misc@watsun; Sun, 28 Sep 1997 01:00:07 -0400 (EDT)
  8. Path: news.columbia.edu!panix!howland.erols.net!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!News1.Ottawa.iSTAR.net!news.istar.net!cal.istar!news
  9. From: Russell Magee <bigruss@cheetah.spots.ab.ca>
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: How, exactly, should Kermit encode data?
  12. Date: 28 Sep 1997 04:59:26 GMT
  13. Organization: iSTAR internet Incorporated
  14. Lines: 31
  15. Message-ID: <60ko7e$pts@nr1.calgary.istar.net>
  16. NNTP-Posting-Host: cheetah.spots.ab.ca
  17. X-Newsreader: TIN [UNIX 1.3 unoff BETA 970709; i586 Linux 2.0.29]
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:7749
  19.  
  20.   Hi all, my apologies for a (probably) stupid question.
  21.  
  22.   At work we needed a quick and dirty solution for downloading boot images
  23. into an embedded controller's Flash chips. Not wanting to re-invent the
  24. wheel, I decided the best thing to do would be to use an existing protocol
  25. for sending the boot image; so I found the Kermit protocol spec on an ftp
  26. site and began coding a Kermit receive bootstrap.
  27.   I've got the transfer working properly now (I think), but it took a few
  28. modifications to what I understood the Kermit encoding algorithm to be.
  29. Here's the encoding scheme I have so far (for 8-bit transfers):
  30.  
  31.   -All ASCII codes under 32 are prefixed with '#' (the control-quote escape),
  32.     and have bit 6 inverted (modulo 64);
  33.   -The '#' character is prefixed by itself ('#' => '##');
  34.   -ASCII DEL ($7f) is prefixed by '#' and has bit 6 inverted (modulo 64);
  35.  
  36.   The same rules seem to be applied to all values over 127, as if they were
  37. 7-bit characters (e.g., '#'+128 (code $a3) is prefixed with '#' , resulting
  38. in the code $23a3; $FF, which is DEL+128, is prefixed with $23 resulting in
  39. $23BF).
  40.  
  41.   The Kermit docs I have are quite detailed as to how to encode 8-bit data over
  42. a 7-bit line, but they didn't mention these peculiarities about 8-bit encoding.
  43.   I determined these rules by examining the packets sent by the PD term program
  44. 'Telix' on the IBM PC.  If anyone could clarify/correct these rules I would
  45. appreciate it!
  46.  
  47.   Thanks,
  48.   Russ Magee,
  49.   Systems Programmer, Steady State Automation Ltd.
  50.